package com.qingke.notlonely.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name="yue")
public class Yue {
	@Id
	@Column(name="id")
	private int id;
	@ManyToOne
	@JoinColumn(name="inviter_id")
	private User inviter;
	@ManyToOne
	@JoinColumn(name="invitee_id")
	private User invitee;
	@Column(name="invite_time",insertable=false)
	private Date inviteTime;
	@Column(name="is_accepted")
	private boolean isAccepted;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public User getInviter() {
		return inviter;
	}
	public void setInviter(User inviter) {
		this.inviter = inviter;
	}
	public User getInvitee() {
		return invitee;
	}
	public void setInvitee(User invitee) {
		this.invitee = invitee;
	}
	public Date getInviteTime() {
		return inviteTime;
	}
	public void setInviteTime(Date inviteTime) {
		this.inviteTime = inviteTime;
	}
	public boolean isAccepted() {
		return isAccepted;
	}
	public void setAccepted(boolean isAccepted) {
		this.isAccepted = isAccepted;
	}
	
	
}
